<?php /* Smarty version 2.6.26, created on 2014-10-24 08:55:25
         compiled from add.html */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>添加博客</title>
	<script charset="utf-8" src="<?php echo @__ROOT__; ?>
/Blog/Admin/Org/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="<?php echo @__ROOT__; ?>
/Blog/Admin/Org/kindeditor/lang/zh_CN.js"></script>
<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id');
        });
</script>
<style type="text/css">
*{padding: 0; margin: 0;}
table{ width: 100%;border-top: 1px solid #aaa;border-left: 1px solid #aaa;background: #FAFAFA;}
td{ border-bottom: 1px solid #aaa;border-right: 1px solid #aaa;}
</style>
<script type="text/javascript">



</script>
</head>
<body>
	<form action="" method="post" enctype='multipart/form-data'>
		<table align="center">
			<tr>
				<td>标题</td>
				<td><input type="title" name="title"></td>
			</tr>
 			<tr>
 				<td>栏目</td>
 				<td>
 					<select name="cid" id="">
 					 <?php unset($this->_sections['c']);
$this->_sections['c']['loop'] = is_array($_loop=$this->_tpl_vars['categoryDate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['c']['name'] = 'c';
$this->_sections['c']['show'] = true;
$this->_sections['c']['max'] = $this->_sections['c']['loop'];
$this->_sections['c']['step'] = 1;
$this->_sections['c']['start'] = $this->_sections['c']['step'] > 0 ? 0 : $this->_sections['c']['loop']-1;
if ($this->_sections['c']['show']) {
    $this->_sections['c']['total'] = $this->_sections['c']['loop'];
    if ($this->_sections['c']['total'] == 0)
        $this->_sections['c']['show'] = false;
} else
    $this->_sections['c']['total'] = 0;
if ($this->_sections['c']['show']):

            for ($this->_sections['c']['index'] = $this->_sections['c']['start'], $this->_sections['c']['iteration'] = 1;
                 $this->_sections['c']['iteration'] <= $this->_sections['c']['total'];
                 $this->_sections['c']['index'] += $this->_sections['c']['step'], $this->_sections['c']['iteration']++):
$this->_sections['c']['rownum'] = $this->_sections['c']['iteration'];
$this->_sections['c']['index_prev'] = $this->_sections['c']['index'] - $this->_sections['c']['step'];
$this->_sections['c']['index_next'] = $this->_sections['c']['index'] + $this->_sections['c']['step'];
$this->_sections['c']['first']      = ($this->_sections['c']['iteration'] == 1);
$this->_sections['c']['last']       = ($this->_sections['c']['iteration'] == $this->_sections['c']['total']);
?>
 						<option value="<?php echo $this->_tpl_vars['categoryDate'][$this->_sections['c']['index']]['cid']; ?>
">
 							<?php echo $this->_tpl_vars['categoryDate'][$this->_sections['c']['index']]['catname']; ?>

 						</option>
 					<?php endfor; endif; ?>
 					</select>
 				</td>
 			</tr>
 			<tr>
 				<td>缩略图</td>
 				<td><input type="file" name="thumb"></td>
 			</tr>
			<tr>
				<td>正文</td>
				<td><textarea name="content" id="editor_id"></textarea></td>
			</tr>
			<tr>
				<td>点击数</td>
				<td><input type="title" name="click" value="100"></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="发表"></td>
			</tr>

		</table>

	</form>
</body>
</html>